package yxy.game.pm2.bean;

public enum EquipPosition {

	武器(0), 头盔(1), 战甲(2), 护腕(3),;

	private int number;

	private EquipPosition(int number) {
		this.number = number;
	}

	public int getNumber() {
		return number;
	}

	static public EquipPosition forNumber(int number) {
		switch (number) {
		case 1:
			return 武器;
		case 2:
			return 头盔;
		case 3:
			return 战甲;
		case 4:
			return 护腕;
		default:
			return null;
		}
	}

}
